Skip to content

UIStroke

Inherits Instance

UIStroke adds a coloured outline (border) to its parent UI element. Parent it to a UIView (such as a UIFrame, UIButton or UILabel) to give it a stroke.

Example usage:

local stroke = Instance.new("UIStroke", myButton)
stroke.Color = Color.new(1, 0.78, 0.18)
stroke.Thickness = 3
stroke.CornerRadius = 8

Properties

Color : Color

The colour of the outline.

Thickness : number

The width of the outline in pixels.

CornerRadius : number

Rounds the corners of the parent element. 0 leaves the parent's existing corners untouched.